package Proxy;

import java.net.*;

public class Proxy implements Runnable {    
    
    Socket clientSocket;
    
    public Proxy(Socket s) throws SocketException{
        clientSocket = s;
    }

    @Override
    public void run(){    
        //read the Data
          //what data structure suits this? my databuilder probably isn't the best choice...
        //split it into packets
        //forward packets to any registered listener
        //read off the host addresses
        //send to the correct host

        //send request
        Thread first = new Thread(new DataTransferOut(clientSocket));
        first.start();            
    }
}